package com.fm618.flex4
{
	import mx.controls.Alert;
	
	public class FmError extends Error
	{
		public const ERROR_TYPE_ERROR:String = '错误';
		public const ERROR_TYPE_INFO:String = '信息';
		public const ERROR_TYPE_WARN:String = '警告';
		
		public function FmError(message:*="", id:*=0)
		{
			//TODO: implement function
			super(message, id);
		}
		
		/**
		 * 显示对话框
		 *  
		 * @param String ErrType MyError的常量
		 * 
		 */
		public function show(ErrType:String):void{
			Alert.show(this.message,ErrType);
		}
	}
}